Gradient flows in dataset space

ABSTRACT

Generally discussed herein are devices, systems, and methods for machine learning (ML) by flowing a dataset towards a target dataset. A method can include receiving a request to operate on a first dataset including first feature, label pairs, identifying a second dataset from multiple datasets, the second dataset including second feature, label pairs, determining a distance between the first feature, label and the second feature, label pairs, and flowing the first dataset using a dataset objective that operates based on the determined distance to generate an optimized dataset.

RELATED APPLICATION

This application is a continuation application of U.S. patent application Ser. No.: 17/103,290, filed Nov. 24, 2020; which application claims the benefit of priority to U.S. Provisional Patent application 63/083,009 filed on Sep. 24, 2020 and titled “Gradient Flows in Dataset Space”, and to U.S. Provisional Patent application 63/091,837 filed on Oct. 14, 2020 and titled “Gradient Flows in Dataset Space”, the contents of which applications are incorporated herein by reference in their entireties.

BACKGROUND

A current practice in machine learning (ML) is model-centric. The current practice casts problems as adjustments over model parameters, all the while assuming the data is either fixed, or subject to extrinsic and inevitable change. This practice fails to capture important existing aspects of ML, such as the data manipulation (e.g., augmentation) that goes into usual ML design, training, and operation. Further, this practice is ill-suited to formalize novel data-centric problems, such as model-agnostic; transfer learning or dataset synthesis.

SUMMARY

This summary section is provided to introduce aspects of embodiments in a simplified fonn, with further explanation of the embodiments following in the detailed description. This summary section is not intended to identify essential or required features of the claimed subject matter, and the combination and order of elements listed in this summary section are not intended to provide limitation to the elements of the claimed subject matter.

Embodiments can perform operations for machine learning (ML) in a manner that is different from a traditional ML paradigm. Embodiments can flow a first dataset towards a second dataset based on a specified objective. Instead of modifying model parameters to satisfy the objective, embodiments can allow a dataset to be modified (“flowed”) to satisfy the objective.

A method, system, computer-readable medium, a device, or the like can be configured to implement one or more embodiments. A method for ML that flows a dataset towards a target dataset can include receiving a request to operate on a first dataset including first feature, label pairs. The method can include, identifying a second dataset from multiple datasets, the second dataset including second feature, label pairs. The method can include determining a distance between the first feature, label and the second feature, label pairs. The method can include flowing the first dataset using a dataset objective that operates based on the determined distance to generate an optimized dataset.

The method can further include, wherein each label is represented by a probability distribution of features mapped to the label in the distance determination. The method can further include operating a first ML model trained on the second dataset with the altered first dataset as input to provide a result. The method can further include training a second ML model using the altered first dataset and at least a portion of the second dataset. The method can further include providing the altered first dataset.

The method can further include keeping the first ML model static during training. The method can further include, wherein determining the distance includes determining a differentiable distance. The method can further include, wherein the distance includes an optimal. transport distance (OTD). The method can further include, wherein determining the OTD includes determining a distance between respective labels of the first and second datasets based on features of datapoints of the first and second datasets associated with the respective labels. The method can further include, wherein flowing the first dataset includes determining gradients of the dataset objective with respect to the first dataset and flowing the first dataset further includes updating the first dataset using the determined gradient. The method can further include, wherein the dataset objective includes at least one of minimizing internal energy, minimizing potential energy, minimizing distance, or minimizing interaction energy.

The method can further include, wherein the dataset objective includes minimizing distance between feature, label pairs. The method can further include, wherein updating the first dataset using the determined gradient includes using a feature-driven update, joint-driven fixed-label update, or a joint-driven variable-label update. The method can further include, wherein the first dataset and the second dataset include image datasets or the first dataset and the second dataset include natural language processing (NLP) datasets.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 illustrates, by way of example, a logical block diagram of an embodiment of a system for dataset optimization.

FIG. 2 illustrates, by way of example, a logical block diagram of another embodiment of a system for dataset optimization.

FIG. 3 illustrates, by way of example, a logical block diagram of yet another embodiment of a system for dataset optimization.

FIG. 4 illustrates, by way of example, a flow diagram of an embodiment of a technique for dataset optimization.

FIG. 5 illustrates, by way of example, a flow diagram of another embodiment of a technique for dataset optimization.

FIG. 6 illustrates, by way of example, a series of diagrams of gradient flows at various time steps.

FIG. 7 illustrates, by way of example, another series of diagrams of gradient flows at various time steps.

FIG. 8 illustrates, by way of example, bar graphs of error in different techniques for transfer learning using four image classification datasets.

FIG. 9 illustrates, by way of example, a few image series in an embodiment illustrating images at various times during a gradient flow process.

FIG. 10 illustrates, by way of example, a block diagram of an embodiment of a machine (e.g., a computer system) to implement one or more embodiments.

DETAILED DESCRIPTION

In the following description, reference is made to the accompanying drawings that form a part hereof, and in which is shown by way of illustration specific embodiments which may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the embodiments. It is to be understood that other embodiments may be utilized and that structural, logical, and/or electrical changes may be made without departing from the scope of the embodiments. The following description of embodiments is, therefore, not to be taken in a limited sense, and the scope of the embodiments is defined by the appended claims.

The operations, functions, or algorithms described herein may be implemented in software in some embodiments. The software may include computer executable instructions stored on computer or other machine-readable media or storage device, such as one or more non-transitory memories (e.g., a non-transitory machine-readable medium) or other type of hardware based storage devices, either local or networked, Further, such functions may correspond to subsystems, which may be software, hardware, firmware or a combination thereof. Multiple ftinctions may be performed in one or more subsystems as desired, and the embodiments described are merely examples. The software may be executed on a digital signal processor, ASIC, microprocessor, central processing unit (CPU), graphics processing unit (GPU), field programmable gate array (FPGA), or other type of processor operating on a computer system, such as a personal computer, server or other computer system, turning such computer system into a specifically programmed machine. The functions or algorithms may be implemented using processing circuitry, such as may include electric and/or electronic components (e.g., one or more transistors, resistors, capacitors, inductors, amplifiers, modulators, demodulators, antennas, radios, regulators, diodes, oscillators, multiplexers, logic gates, buffers, caches, memories, GPUS, CPUs, field programmable gate arrays (FPGAs), or the like).

In a traditional ML process, the learning task is focused on inference, regularization, and data preprocessing approached from a model-centric viewpoint. In the traditional ML paradigm, an optimization problem is cast as finding the parameters of the model that minimize some dataset objective (e.g., empirical risk) on a given dataset. Throughout this process, the data distribution is typically assumed to be fixed and immutable. When it is not, such as in the transfer learning and domain adaptation paradigms, the source of change is assumed to be extrinsic and beyond control. As such, these paradigms too are cast as learning optimal model parameters, with the added constraint that these should account for the changes in data distributions. Thus, most of ML can be understood, from the optimization perspective, as model parameter optimization.

In contrast to normal ML practice, embodiments view a dataset as variable and optimize the dataset. This view casts the ML tasks as an optimization over data-generating distributions. Embodiments approach this class of problems through a gradient flow in a dataset probability space. Embodiments provide practical and efficient particle-based methods that are flexible and well-behaved for a variety of dataset objectives. Embodiments provide a framework that is effective for dataset interpolation, synthesis, aggregation, data privacy in ML, among other applications.

Embodiments provide devices, systems, and methods generated using a fundamentally different class of optimization problems. The optimization problems are focused on a dynamic dataset rather than a dynamic model. Broadly, the optimization problems involve finding or modifying a dataset to optimize some dataset objective function of interest. The dataset objective can pertain to a specific model (e.g., what is the dataset on which this model performs best?) or can be model-agnostic (e.g., what is the most similar linearly separable dataset?). This dataset optimization paradigm is a very different approach to ML than model parameter optimization. Embodiments provide solutions to common ML problems, such as dataset generation, that are not solved using the traditional ML paradigm. Retaining enough data to train an ML model that is sufficiently accurate across a domain of interest can be very challenging. This is, at least in part, because training a ML model to sufficient accuracy can require thousand, tens of thousands, hundreds of thousands, or even millions of data samples f features, label) pairs. Annotating (determining or verifying a label for a particle set of features) can be very time consuming and prohibitively expensive. Further, an ML model that has been trained on a dataset that includes features with a first distribution may not be sufficiently accurate when aperating on data with a second, different distribution (even if the distributions are similar), Thus, generating a dataset is a technical problem. Embodiments provide a technical solution to such a problem, among other problems.

Embodiments provide tools to formalize various well-known data processing heuristics that form part of most state-of-the-art ML pipelines, such as data augmentation, dataset pooling or instance mixing. Embodiments also allow for posing new problems or casting existing problems under a new light, such as dataset synthesis with certain (e.g., size or privacy) constraints, missing data imputation, or data compression. Meta-learning is another problem where a dataset-centric approach is relevant. Meta-learning can ‘retro-fit’ new tasks to the domain of expertise of the trained model, instead of the usual scheme that adapts the model parameters to the tasks by optimizing the dataset based on the dataset objective.

At least two characteristics set the model parameter optimization and dataset optimization paradigms apart. First, the dataset optimization paradigm is inherently model-independent. This allows for dataset manipulation that is not tailored to a specific model. The generated dataset can provide benefits to all models trained or operating on the generated dataset. Second, while model parameter optimization is usually cast as a finite-dimensional problem (e.g., over R^(k) for a model with k parameters), dataset optimization is most naturally formulated as one over infinite-dimensional space. While a dataset might consist of finitely many samples, the precise number is seldom relevant and often unspecified (e.g., in streaming settings). Instead, the true object of interest is the generative process that gives rise to the dataset. For example, in the context of supervised learning, a dataset might be characterized through a joint distribution p(X, Y), where X and Y are features and labels, respectively, and can be represented by distributions of pairs of features and labels. In this case, the optimization problem would be defined over the space of joint distributions P(X×Y), (e.g., finding p*∈P(X×Y) that minimizes a given dataset objective F(p)). There are various ways to approach and formalize such a problem. Embodiments can use gradient flows, a linchpin of applied mathematics for modeling dynamics in very general infinite dimensional spaces. A gradient flow using a gradient descent, is a first-order derivative, iterative technique for finding a local minimum of a differentiable function. To find a local minimum of a function using gradient descent, steps proportional to a negative of a gradient (or approximate gradient) of the function at the current point are taken. Gradient flows come with various appealing properties: they are inherently flexible both in terms of the underlying space and types of dynamics they can model, they admit rigorous convergence analysis, and they produce, in addition to a final minimizing solution, a fill trajectory of iterates, which are often useful.

But harnessing gradient flows for labeled dataset optimization poses various challenges. A suitable representation of feature-label pairs and a meaningful metric between datasets is difficult to define. Then, one must find a class of flows that are expressive enough to model interesting dataset objective functions on datasets, yet sufficiently well-behaved to allow for tractable optimization. In response to the first of these challenges, embodiments leverage a recently proposed notion of distance between datasets based on optimal transport (OT), called the optimal transport distance (OTD) or optimal transport dataset distance (OTDD), which provides the space of joint distributions with a meaningful metric. By making this metric differentiable, it can be optimized. Embodiments can use dataset objectives that can be re-purposed to encode various dataset-related dataset objectives. As a result, embodiments provide a framework fbr dataset optimization that is flexible and efficient.

In general, embodiments can use a differential distance metric and gradient flows based on a determined distance to optimize a dataset for a dataset objective. The details of an example differentiable distance metric (OTDD) and gradient flows are discussed thrther below. Reference will now be made to the FIGS. to provide further details and applications of embodiments.

FIG. 1 illustrates, by way of example, a diagram of an embodiment of a system 100 for dataset optimization. The system 100 as illustrated includes a user 101 with a device 102. The device 102 can issue a request 104 to a data optimization ML system 106. The request 104 can indicate a location of a first dataset, include the first dataset, or the like. The request 104 can indicate a result desired, such as an ML model, data that meets certain criteria, or the like.

The device 102 is a compute device, such as a computer (e.g., laptop, desktop, handheld, smartphone, tablet, phablet, or the like). The device 102 can access a. data optimization ML system 106. The data optimization ML system 106 can operate on the first dataset to satisfy a dataset objective. In the example of FIG. 1 the user 101 has requested more data, such as thr training or classification (e.g., using a traditional ML paradigm). The data optimization ML system 106 can include processing circuitry configured to implement operations 110, 1112.

The processing circuitry can include electric or electronic components, software or firmware executing on the electronic or electronic components, or a combination thereof. The electric or electronic components can include one or more resistors, transistors, capacitors, diodes, inductors, logic gates (e.g., AND, OR, XOR, negate, buffer, or the like), switches, power supplies, oscillators, analog to digital converters, digital to analog converters, amplifiers, memory devices, processing devices (e.g., a central processing unit (CPU), field programmable gate array (FPGA), graphics processing unit (GPU), application specific integrated circuit (ASIC), or the like), a combination thereof, or the like).

The request 104 as illustrated includes a first dataset or a distribution of a first dataset and a desired output (classification, dataset, ML model, or the like). The distribution of the first dataset can include a mean, covariance, shape (e.g., mixture of Gaussian, or the like).

The operation 110 includes determining a differentiable distance between feature, label pairs of the first dataset provided by the user 101 and one or more second datasets. The differentiable distance can include OTDD. The operation 110 can include identifying one or more of the second datasets that are closest to the first dataset. A closer dataset can require less processing (fewer number of iterations) to achieve a dataset objective than a dataset that is further away. The identified second dataset can be altered, at operation 112, to maximize an objection. The operation 112 can include using a gradient flow and the determined differentiable distance to minimize a dataset objective. The dataset objective can include potential energy, Wasserstein distance, internal energy, interaction energy, or a combination thereof. The dataset objective can enforce a constraint on the data alteration, such as separability between labels (e.g., by potential or interaction energy), constraints on a feature norm, dataset similarity (e.g., via a distance dataset objective), an entropy consideration (e.g., using internal energy) another constraint, or a combination thereof.

Table 1 shows the differentiable distance between various datasets:

TABLE 1 OTDD between some National Institute of Standards and Technology (NIST) datasets as well as the United States Postal Service dataset. MNIST EMNIST FashionMNIST KMNIST USPS MNIST 1.04 1.74 1.41 1.26 EMNIST 1.04 1.57 1.28 1.32 FashionMNIST 1.74 1.57 1.67 1.10 KMNIST 1.41 1.28 1.67 1.30 USPS 1.26 1.32 1.10 1.30

Table 1 results suggest that MNIST and EMNIST are the closest (most similar) among the datasets of Table 1, while fashionMNIST and MNIST are the furthest (least similar) among the datasets of Table 1. If the first dataset were USPS, fashionMNIST could be the second dataset 108, since it is closest to USPS among the available datasets.

The altered second dataset 108 can then be provided to the user 101, via the device 102, for example. The altered second dataset 108 can then be used as additional data of the first dataset, especially if distance was the dataset objective at operation 112. The user 101 can then have more data to train and/or test an ML model using the traditional ML paradigm.

Additionally, or alternatively, the privacy of persons associated with the data in the first or second datasets can be preserved by altering the dataset towards the other dataset, and then operating on the altered dataset. The altered second dataset 108 can be considered samples from a distribution representing the first dataset. The additional data provided by the altered second dataset 108 can help improve the accuracy, reduce bias, or the like of the ML model of concern to the user 101.

FIG. 2 illustrates, by way of example, a diagram of an embodiment of another system 200 for dataset optimization. The system 200 is similar to the system 100, with the request 220 of the system 200 being different than the request 104 of the system 100 causing the data optimization ML system 106 to provide a different output (a fine tuned model 222 in the example of FIG. 2 ). The data Optimization ML system 106 of the system 200 receives the request 220 communicated by the device 102. The request 220, in the example of FIG, 2, is for an ML model 222. The data optimization ML system 106 can perform the operation 110 as it does in the system 100.

The data optimization ML system 106 can alter the second dataset based on the determined differentiable distance and a dataset objective, at operation 112. The first dataset can then be used to fine tune an ML model that was trained based on the altered second dataset, at operation 226. The fine-tuned ML model 222 can be provided to the device 102.

FIG. 3 illustrates, by way of example, a diagram of another embodiment of a system 300 for dataset optimization. The system 300 is similar to the systems 100 and 200 with the data optimization ML system 106 of FIG. 3 performing some different operations than the systems 100, 200. In the system 300, the user 101 issues a request 338 for a classification 336. The user 101, in any of the systems 100, 200, 300, can provide (i) a distribution (e.g., mean and covariance) for features mapped to labels of a first dataset of which the data to be classified is a member, (ii) features associated with the labels, (iii) the first dataset, or a combination thereof.

The data optimization ML system 106 can determine a differentiable distance, at operation 110, based on the data provided by the user 101. The data optimization ML system 106 can alter the first dataset or the other data provided by the user 101 based on the determined differentiable distance and a dataset objective, at operation 330. The operation 330, if the dataset objective is to minimize the OTDD or other distance between the first dataset and the second dataset can move the distribution of the first dataset towards the distribution of the second dataset. This is beneficial because the second dataset could have been used to train a ML model. If the first dataset or other data provided by the user 101 to be classified is within the distribution of the second dataset, the ML model can operate to determine a classification for the data, but in the domain of the second dataset, which may not have overlapping labels with the first dataset. Since the gradient flow and the distance determination are differentiable, the process is reversible. This means that the classification in the domain of the second dataset can be flowed back to the domain of the first dataset, keeping the label variable, to determine the appropriate label in the first dataset domain based on the classification in the second dataset domain.

To perform the data flow, the ML model trained in the second dataset domain is used to operate on the altered first dataset or altered other data provided by the user 101, at operation 332. Then, at operation 334, the reverse of operation 330 is performed on the features and label generated at operation 332. The operation 334 includes altering the result based on determined differentiable distances between the result and the first dataset to flow the result to the domain of the first dataset.

The operations of FIG. 3 can be used, for example, in natural language processing (NLP). In NLP, storing a Bidirectional Encoder Representation from Transformers (BERT) is prohibitive because a BERT is prohibitively large. In an email model of a user, normally the model (BERT) is pretrained based on user-specific data. Using the operations of FIG. 3 , a BERT can be learned on a standard corpus (ENRON entails for example), and instead of altering the BERT to the user domain, the user domain data can be moved to the BERT domain. Then, the BERT can be used to operate on the altered user domain data. Then the result from operating the BERT can be moved towards the user domain to generate user-specific NLP data.

The operations that regard altering the dataset and determining a differentiable distance can include backpropagation on the dataset using gradient flows and OTDD (or other differentiable distance metric), respectively. These operations are discussed in more detail, including a mathematical description, below.

A problem with determining distances between feature, label pairs is that features are continuous (vectors) and labels are discrete. Determining a distance between features can be performed many ways. However, the discrete nature of labels makes it more difficult to determine distances between feature, label pairs. A solution provided by embodiments is to represent the label as a distribution of features mapped to the label. Then, a differentiable distance metric can be used to determine a distance between distributions (labels).

FIG. 4 illustrates, by way of example, a logical diagram of grouping feature, label pairs by label and determining a distribution (mean and covariance) of features per label. In FIG. 4 , a first dataset 440 includes samples comprising features, label pairs 442, 444, 446, 448, 450, 452. Each of the features are mapped to associated labels, such as by an ML technique, human analyst, or the like. The features mapped to a label are associated and form the features, label pairs 442, 444, 446, 448, 450, 452.

The feature, label pairs 442, 444, 446, 448, 450, 452 are grouped, sorted, or the like, by label. The features mapped to label 0 are used to determine a distribution (mean and variation (e.g., standard deviation, covariance, variance, or the like), and shape) of features associated with label 0 at operation 454. The features mapped to label 1 are used to determine a distribution of features associated with label 1 at operation 456. The features mapped to label 2 are used to determine a distribution of features associated with label 2 at operation 456. Note that more or fewer labels are possible.

At operation 460, the distribution of the features determined at operations 454, 456, and 458 are then used, along with the features, to determine a differentiable distance between features, label pairs (with the label of the pairs being represented by the determined distributions). At operation 462, the first or second dataset is then altered based on the distance and a dataset objective (which can be minimizing the distance, such as with or without constraints or another dataset objective). The altered first or second dataset can then be used for an application in a traditional ML paradigm, such as transfer learning, classification, feature, label pair generation, dataset interpolation, or the like.

A mathematical description and discussion of OTD, OTDD, gradient flows, and their interoperability is provided. Let χ be a Polish space with metric d, and P(χ) be a set of non-negative Borel measures with finite second-order moment on the Polish space. Consider both continuous and discrete measures, the latter represented as an empirical distribution: Σ_(i=1) ^(N)p_(i)δ_(x) _(s) , where δ_(χ) is a Dirac at position x∈χ. For a measure, ρ, and measurable map T:χ→χ, T_(#)ρ denotes a push-forward measure. Embodiments operate in a supervised ML setting; thus, a dataset is defined as a set of feature, label pairs {(x_(i), y_(i))}. The dataset can be assumed to be sampled from some distribution such that α∈P(χ×

). A dataset is denoted as D_(α) to make the sampling explicit. Shorthand notations z≙(x, y) and Z≙χ×

are used. denotes a convergence operator.

In general, OTD is a differentiable distance measure. OTD is model agnostic and does not involve training. OTD relies on optimal transport. OTD uses a hybrid Euclidean-Wasserstein between feature-label pairs across domains (different datasets). Each label is modeled as a distribution of feature vectors associated with the label. Modeling the feature vectors in this way allows for comparison of datasets, even if the label sets are completely disjoint (non-overlapping).

In mathematical terms, optimal transportbe described for measures α, β∈P(χ) and cost function c: χ×χ→

₊, as:

$\begin{matrix} {{{OT}_{c}\left( {\alpha,\beta} \right)}\overset{\Delta}{=}{\min\limits_{\pi \in {\prod{({\alpha,\beta})}}}{\int{{c\left( {x_{1},x_{2}} \right)}d{\pi\left( {x_{1},x_{2}} \right)}}}}} & {{Equation}1} \end{matrix}$

Where Π(α, β) is the set of couplings (transportation plans) betwee α and β such that:

Π(α, β)≙{π∈P(χ×χ)|P _(1#) π=α,P _(2#)π=β  Equation 2

Where c(x, y)=d(x,y)^(p) for p≤1, W_(p)≙OT_(c)(α, β)^(1/p) is called the p-Wasserstein distance. W_(p) defines a distance on P(χ).

_(p)(χ)=(P)(χ), W_(p)) is a metric space called the (p-)Wasserstein space.

OT _(c)(α, β)=sup_(φ∈C(χ)) ∫φ ^(c) dβ  Equation 3

Where φ: χ→

is known as the Kantorovich potential and φ^(c) is its c-conjugate: φ^(c)(x)=inf_(x′∈χ)c(x, x′)=φ(x). For c(x, x′)=∥x−x′∥², ϕ^(c) is the Fenchel conjugate.

A dynamic formulation for optimal transport (OT) is:

$\begin{matrix} {{W_{p}^{p}\left( {\alpha,\beta} \right)} = {\min\limits_{\mu_{t},V_{t}}{\int_{0}^{1}{\int{{{V_{t}(x)}}^{p}d{\mu_{t}(x)}{dt}}}}}} & {{Equation}4} \end{matrix}$

Where the minimum is taken over pairs satisfying μ₀=α, μ₁=β and a continuity equation:

∂_(t)μ_(t)=−∇·(μ_(c) V _(t))  Equation 5

In this formulation, a shortest path among paths for a measure μ_(t) advecting from α to β. Formally, this is the minimum of the metric derivative. The dynamic formulation focuses on local transfer (via μ_(t)), compared to a global correspondence (via π) in the static formulation presented in Equation 1.

OT can be used to define a distance (OTD) between datasets. But for labeled datasets, this is non-trivial. An issue is that a solution to the problem of the distance includes an element-wise metric d, which for labeled datasets includes defining a distance between feature label pairs of different datasets. For the general classification case, where

is a discrete set, this is difficult. To overcome this issue, the labels, y, can be represented as distributions over features mapped to the respective labels. For a simple digit classification problem, α₁ is a distribution over images with a specific label, such as y=1 (digit=1).

Using a metric on

as d_(Z) (z, z′)^(p)≙d_(χ)(x, x′)^(p)+W_(p) ^(p)(α_(y), α_(y′)). Using d_(Z) as a ground cost in Equation 1 yields a distance between measures on datasets. This is called OT dataset distance (OTDD) and defined formally in Equation 6:

$\begin{matrix} {{{OTDD}\left( {D_{\alpha},D_{\beta}} \right)}\overset{\Delta}{=}\left( {\min\limits_{\pi \in {\prod{({\alpha,\beta})}}}{\int{{d_{z}\left( {z,z^{\prime}} \right)}{\pi\left( {z,z^{\prime}} \right)}}}} \right)^{1/2}} & {{Equation}6} \end{matrix}$

An advantage of the OTDD is that it is valid even if the label sets of the two datasets are non-overlapping, or if there is no explicit known correspondence between them (e.g., digits to letters, cats to clothes, or the like). The distance' independence on label overlap is from a geometric treatment of features and labels.

A gradient flow is defined on a function F: χ→

and a point x₀∈χ. A gradient flow is a continuous curve x(t) that evolves from x₀ in the direction of steepest descent of F. When χ is Hilbertian (complete so that calculus can be used and possesses the structure of an inner product that allows length and angle to be measured) and F is sufficiently smooth, the gradient flow can be expressed as a solution to a differential equation x′(t)=−∇F(x(t)) with initial condition x(0)=x₀. Some discretized gradient descent techniques include momentum and acceleration.

The formulation of OTDD and gradient descent is now used to explain dataset optimization using the same. Given a dataset objective on a dataset expressed as a functional F: P(Z)→

determine a joint measure ρ∈P(Z) that realizes Equation 7:

$\begin{matrix} {\min\limits_{\rho \in {P(Z)}}{F(\rho)}} & {{Equation}7} \end{matrix}$

A gradient flow approach (moving along a curve of steepest descent starting at ρ₀ until reaching a solution ρ*. Unfortunately,

_(p)(Z) infinite-dimensional and non-Hilbertian. To overcome this a notion of a derivative (variation) is provided:

Given a functional F:P(Ω)→

consider a perturbation χ such that at least for every ϵ∈[0,ϵ₀], ρ+ϵχ∈P(Ω). If there exists a function G such that

${{\frac{d}{d\varepsilon}{F\left( {\rho + {\varepsilon\chi}} \right)}}❘}_{\varepsilon = 0} = {\int{{G(\rho)}d\chi}}$

for every such perturbation χ, G is called the first variation of F at ρ, and denote it by

$\frac{\partial F}{\partial\rho}.$

The gradient flow (ρ_(t))_(t≥0) of F is then characterized as a solution of Equation 8:

$\begin{matrix} {{\partial_{t}\rho_{t}} = {\nabla \cdot \left( {\rho_{t}{\nabla\frac{\delta F}{\delta\rho}}\left( \rho_{t} \right)} \right)}} & {{Equation}8} \end{matrix}$

Equation 8 includes a term resembling a gradient in a Wasserstein metric, which is ∇_(W)F(ρ). Equation 8 is a continuity equation for ρ_(t) and a velocity field

${- {\nabla\frac{\delta F}{\delta\rho}}}{\left( \rho_{t} \right).}$

One dataset objective is the Wasserstein distance to a target distribution: T_(β)(ρ)≙W₂(ρ, β), which can be determined using OTDD as discussed previously. Other dataset objectives are possible, such as the dataset objectives defined in Equations 9, 10, and 11,

(ρ)=∫f(ρ(z))dz  Equation 9

(ρ)=∫V(z)dρ  Equation 10

(ρ)=½∫∫W(z−z′)dρ(z)dρ(z′)  Equation 11

Where f:

→

is convex and superlinear and V,W:χ→

are convex and sufficiently smooth. These terms have a physical interpretation as internal, potential, and interaction energies, respectively. These dataset objectives can be used with backpropagation through automatic differentiation. A combination of one or more of these dataset objectives can be used as the dataset objective. The dataset objective of interest can thus be expressed as in Equation 12:

F(ρ)=T _(β)(ρ)+

(ρ)+

(ρ)+

(ρ)  Equation 12

A first variation of each dataset objective is provided in Equation 13:

$\begin{matrix} {{\frac{\delta F}{\delta\rho} = {f^{\prime}(\rho)}},{\frac{\delta\mathcal{V}}{\delta\rho} = {{V.\frac{\delta\mathcal{W}}{\delta\rho}} = {W*\rho}}},{\frac{\delta T_{\beta}}{\delta\rho} = \varphi_{\rho}}} & {{Equation}13} \end{matrix}$

Where * denotes a convolution operator between a measurable function and a measure, and φ_(ρ) is the Kantorovich potential in the dual OT formulation (Equation 3). The gradient flow for dataset objectives in the form of Equation 12 is a solution of Equation 14:

∂_(t)ρ=∇·(ρ∇(f′(ρ)+V+W*ρ+φ _(ρ)  Equation 14

In the context of probability densities and datasets, a probability , density equation (PDE) can be understood as a conservation-of-mass principle: no probability mass is created or destroyed in the sequence of densities on χ×

that solve this system. Fora dataset objective in the form of Equation 12 with only

and

terms, the corresponding PDE defined by Equation 14 is known as a diffusion-advection-interaction equation. Certain choices of dataset objectives

and

recover known PDEs. For example, taking F(ρ)=

(ρ)+

(ρ), and f(t)=t log t the gradient flow of F will be defined by the solution of the Fokker-Planck equation ∂_(t)ρ−Δρ−∇·(ρ∇V)=0. In dataset space, this equation can be interpreted as the time evolution of a dataset subject to a drift force imposed by the potential function V and a constant-variance diffusion term (Δρ) resulting from the entropy-inducing dataset objective F. Other choices of dataset objective provide the advection equation, porous-media equation, and various other diffusion-advection-interaction PDEs.

The PDEs can be described in terms of random variables. Consider a stochastic process (Z_(t))_(t), where each Z_(t)≙(χ_(t),

) is a random variable with law ρ_(t)∈P(Z). Equation 8 is associated with a stochastic differential equation (SDE) on Z_(t), known as a McKean-Vlasov process according to Equation 15:

dZ _(t)=ϕ(Z _(t), ρ_(t))dt, Z ₀˜ρ₀  Equation 15

For

${\phi\left( {Z_{t} + \rho_{t}} \right)} = {{- {\nabla\frac{\partial F}{\partial\rho}}}\left( \rho_{t} \right){\left( Z_{t} \right).}}$

Equation 15 can be interpreted

as a trajectory of a particle, with initial position ρ₀ and moving according to a potential function that captures its intrinsic dynamics and interactions with other particles, all driven by F. This particle view of the gradient flow lends itself to computational schemes that operate on finitely many samples. The process defined by Equation 15 is defined on Z (a finite-dimensional space) rather than on the infinite-dimensional P(Z), which makes it amendable to computation.

Numerical approaches to solve SDEs, like that defined in Equation 15, can include discretization, such as with a forward Euler scheme defined in Equation 16:

Z _(t+1) =Z _(t) −γ∇F _(αt)(Z _(t)),Z ₀˜ρ₀  Equation 16

Computationally, this discretized scheme is approximated by a system of particles that evolve simultaneously. Starting from ρ₀≈Σ_(i=1) ^(N)ρ_(i)δ_(Z) _(i) ₍₀₎, each particle z^((i)) is evolved according to Equation 16, resulting in a system of n updates as in Equation 17:

z _(t+1) ^((i)) =z _(t) ^((i))−γ∇_(Z) _((t)) F(z _(t) ^((i)))∀i=1, . . . , n  Equation 17

Then, ρ_(t) can be approximated as ρ_(N,t)=Σ_(i=1) ^(N)ρ_(i)δ_(Z) _(t) i, where ρ_(N,t) is a gradient flow for F. For well-behaved dataset objectives, this flow inherits all convexity and stability properties of the exact dataset objective, and ρ_(N,t)(x)→ρ_(t)(x).

The distance dataset objective can be defined as T_(β)(ρ)≙OTDD(ρ, β), where β is a (fixed) target dataset distribution. Various applications, such as dataset interpolation or sample generation for transfer learning, can be modelled with this dataset objective. The distance dataset objective can be combined with other dataset objectives to “shape” the distribution of interest, ρ. The shape can include separation between labels (linear separation), regularity of points in the distribution, size of distribution (e.g., average magnitude, mathematical norm, or the like of samples), or other constraints.

A potential energy dataset objective,

(ρ)=∫V(z)dρ can be used to enforce local (per-instance) constraints. For example, a norm of the features of a dataset can be constrained by setting V(z)=V(x, y)=∥x∥, or more generally V(z)=∥Ax−b∥ for some A∈

^(d×d), b∈

^(d). These constraints can be enforced per class, such as to have different constraints per class using V(z)=|(|A_(y)x−b_(y)|)|. In another example, linear separability between the datasets can be enfbrced using a margin-inducing potential V(z)=max{0,y(x^(T)w−b)}.

An interaction energy potential,

(ρ)=½∫∫W(z−z′)dρ(z)dρ(Z) can encode a dataset objective that model's interaction or aggregation between samples in the dataset. A class-repulsion constraint, for example, includes

(z−z′)=exp {−|x−x′|² if y≠y′ and 0 otherwise. This encourages class separation by penalizing pairs (z, z′) that have different labels but similar features.

The internal energy dataset objective

(ρ)=∫f(ρ(z))dz requires an explicit density ρ(z) in closed form. An entropy term can be used in the dataset objective by taking f(t)=tlogt.

Some practical, implementation considerations regarding OTDD and gradient flow applications are provided. In determining the differentiable dataset distance, such as OTDD. Difficulty in determining OTDD is provided from the discrete nature of labels y. Recall that each point (particle) is a pair of features x and a corresponding label y denoted as (x, y), where x∈

^(r) (a continuous r-dimensional space) and y∈{c_(i), . . . , c_(K)} (a discrete space). The OTDD discussion about Equation 6 provides an alternative representation of the features and label pairs as (x, ν) where ν∈E P(χ) is a measure over χ associated with the label y.

One way to implement this is to backpropagate gradients into x^((i)), perform a gradient step adjustment on those features, then compute means and covariances (and as a consequence, the probabilistic representation of labels ν_(y)). Formally, this is represented as:

x _(t+1) ^(i) =x _(t) ^(i)−τ∇_(x) _(i) F(ρ) i∈{1, . . . , n}

μ_(t+1) ^(j)=mean({x _(t+1) ^(i)}_(i:y) _(i) _(=j)) j∈{1, . . . , k}

Σ_(t+1) ^(t)=cov({x _(t+1) ^(i)}_(i:y) _(i) _(=j)) j∈{1, . . . , k}

ν_(t+1) ^(t)=

(μ_(t+1′) ^(j)Σ_(t+1) ^(j)) j∈{1, . . . , k}

Note that the mean and covariance evolve in response to a gradient change on the samples. In this formulation the gradient does not operate directly on the mean and covariance. This formulation is sometimes called a feature-driven approach. A possible drawback of this approach is that the label assignments are fixed through time. This can be acceptable is the first dataset and the target dataset include the same number of labels. A joint-drive fixed-label formulation can perform independent gradient updates on the mean and covariance while keeping the label assignments fixed. Formally, the joint-driven fixed-label update is represented as:

x _(t+1) ^(i) =x _(t) ^(i)−τ∇_(i) iF(ρ) i∈{1, . . . , n}

μ_(t+1) ^(j)=μ_(t) ^(i)−τ∇_(μ) jF(ρ) j∈{1, . . . , k}

Σ_(t+1) ^(j)=Σ_(t) ^(i)−τΕ_(Σ) jF(ρ) j∈{1, . . . , k}

ν_(t+1) ^(j)=

(μ_(t+1′) ^(j)Σ_(t+1) ^(j)) j∈{1, . . . , k}

Relaxing a constraint that label assignments are fixed through the gradient flow process can include evolving a distribution associated with each point individually. The distributions for each label can be decoupled yielding a distribution per sample, rather than a distribution per class. Each sample (sometimes called a particle) can then be evolved independently and the labels can be recovered, such as by clustering after evolution. This is called a joint-driven variable-label formulation. Formally, the joint-driven, variable-label update is represented as:

x _(t+1) ^(i) =x _(t) ^(i)−τ∇_(x) _(i) F(ρ) i∈{1, . . . , n}

μ_(t+1) ^(i)=μ_(t) ^(i)−τ∇_(μ) _(i) F(ρ) i∈{1, . . . , n}

Σ_(t+1) ^(i)=Σ_(t) ^(i)−τ∇_(Σ) _(i) F(ρ) i∈{1, . . . , n}

ν_(t+1) ^(i)=

(μ_(t+1′) ^(i)Σ_(t+1) ^(i)) i∈{1, . . . , n}

To recover the labels, a clustering technique (e.g., a non-parametric clustering technique that does not require specifying the number of clusters) can operate on pairs of the mean and covariance (μ_(i), Σ_(i)).

Some practical implementation considerations are now provided for the dataset objective F(ρ). A first variation of a potential energy dataset objective is a scalar-valued function, so the first variation can be computed using automatic differentiation. A first variation of interaction energy dataset objectives can be approximated as an empirical expectation over samples. A first variation of an internal energy dataset objective can be determined if the density is available and can be back-propagated. In such circumstances, automatic differentiation can be used to determine the gradient.

The step-size of the gradient application can be fixed or variable. To accelerate convergence and account for potential violations in a convexity assumption in the dataset objective, an adaptive step-size technique like stochastic gradient descent (SGD) with momentum, ADAM, or ADAGARD can be used. Such adaptive step-sizes aid in escaping local minima.

FIG. 5 illustrates, by way of example, a diagram of an embodiment of a method 500 for dataset optimization. The method 500 as illustrated includes receiving a request to operate on a, first dataset including first feature, label pairs, at operation 502; identifying a second dataset from multiple datasets, the second dataset including second feature, label pairs, at operation 504; determining a distance between the first feature, label and the second feature, label pairs, at operation 506; and flowing the first dataset using a dataset objective that operates based on the deter lined distance to generate an optimized dataset, at operation 508.

The method 500 can further include, wherein each label is represented by a probability distribution of features mapped to the label in the distance determination. The method 500 can further include operating a first ML model trained on the second dataset with the altered first dataset as input to provide a result. The method 500 can further include keeping the first MI model static during training.

The method 500 can further include training a second ML model using the altered first dataset and at least a portion of the second dataset. The method 500 can fUrther include providing the altered first dataset. The method 500 can further include, wherein determining the distance includes determining a differentiable distance. The method 500 can thrther include, wherein the distance includes an optimal transport distance (OTD). The method 500 can further include, wherein determining the OTD includes determining a distance between respective labels of the first and second datasets based on features of datapoints of the first and second datasets associated with the respective labels.

The method 500 can further include, wherein flowing the first dataset includes determining gradients of the dataset objective with respect to the first dataset and flowing the first dataset further includes updating the first dataset using the determined gradient. The method 500 can further include, wherein the dataset objective includes at least one of minimizing internal energy, minimizing potential energy, minimizing distance, or minimizing interaction energy.

The method 500 can further include, wherein the dataset objective includes minimizing distance between feature, label pairs. The method 500 can further include, wherein updating the first dataset using the determined gradient includes using a feature-driven update, joint-driven fixed-label update, or a joint-driven variable-label update. The method 500 can further include, wherein the first dataset and the second dataset include image datasets or the first dataset and the second dataset include natural language processing (NLP) datasets.

“Flows”, as used herein, means iterative application and update of features (and sometimes labels) of data samples using a gradient descent technique constrained by an objective. Some experimental results using embodiments are now provided. The experimental results regard flowing a first dataset (D_(ρ)) towards a second dataset (D_(B)) with a functional

(ρ)=OTDD(D_(ρ), D_(β)).

FIG. 6 illustrates, by way of example, a series of diagrams 600 of gradient flows at various time steps. The example of the gradient flows in FIG. 6 use a joint driven fixed label technique for the gradient flows. In the diagrams 600, there are two datasets. A first dataset includes samples 660 mapped to label “0”, samples 662 mapped to label “1”, samples 664 mapped to label “2”, samples 666 mapped to label “3”, and samples 668 mapped to label “4”. A second dataset includes samples 670 mapped to label “A”, samples 672 mapped to label “B”, samples 674 mapped to label “C”, samples 676 mapped to label “D”, and samples 678 mapped to label “E”. As time progresses, the data samples 660 get closer to the data samples 670, the data samples 662 get closer to the data samples 678, the data samples 664 get closer to the data samples 672, the data samples 666 get closer to the data samples 674, and the data samples 668 get closer to the data samples 676.

FIG. 7 illustrates, by way of example, another series of diagrams 700 of gradient flows at various time steps. The example of the gradient flows in FIG, 7 use a joint driven variable label technique fbr the gradient flows. In the diagrams 700, the two datasets are the same as in FIG. 6 , with the first dataset able to be mapped to different labels during the gradient flow process. As time progresses, some of the data samples of the first dataset include labels different from when the flow started. Some of the data samples 680 are mapped to label “5”, some of the data samples 682 are mapped to label “6”, some of the data samples 684 are mapped to label “7”, some of the data samples 686 are mapped to label “8”, and some of the samples are mapped to label “9”.

FIG. 8 illustrates, by way of example, bar graphs 800 of error in different techniques for transfer learning using four image classification datasets: MNIST, USPS, fashion-MNIST, AND KMNIST, denoted here as m, u, f, k, respectively. The bar graphs 800 include groups 880, 882, 884, 886, 888, and 890 of 6 bars representing 6 different transfer learning techniques. The bars of each group are described from left to right as: (i) no extra. learning, (ii) learning on additional data. without modification, (iii) learning on additional data after modification using a neural network (NN) that approximates the gradient flow process, (iv) learning on a final state of additional data flowed towards target dataset, (v) learning on all states of additional data flowed towards target dataset (the state of the additional after each iteration of the flow) and (vi) learning on additional data flowed towards target dataset and additional data after modification using the NN. The group 880 represents transfer learning from MNIST to USPS (an MNIST trained model is further trained using USPS data samples), the group 882 represents transfer learning from USPS to MNIST, the group 884 represents transfer learning from MNIST to KMNIST, the group 886 represents transfer learning from KMNIST to MIST, the group 888 represents transfer learning from MNIST to fashion-MNIST, the group 890 represents transfer learning from thshion-MNIST to MNIST.

FIG. 9 illustrates, by way of example, a few series images in an embodiment illustrating images at various times during a gradient flow process. In a first series 992, MNIST data samples are flowed towards the USPS dataset, in a second series 994, MNIST data samples are flowed towards the fashion MNIST dataset, in a third series 996, MNIST data samples are flowed towards the KMNIST dataset, and in a fourth series 998, KMNIST data samples are flowed towards the MNIST dataset.

FIG. 10 illustrates, by way of example, a block diagram of an embodiment of a machine 1000 (e.g., a computer system) to implement one or more embodiments. One example machine 1000 (in the form of a computer), may include a processing unit 1002, memory 1003, removable storage 1010, and non-removable storage 1012. Although the example computing device is illustrated and described as machine 1000, the computing device may be in different forms in different embodiments. For example, the computing device may instead be a smartphone, a tablet, smartwatch, or other computing device including the same or similar elements as illustrated and described regarding FIG. 10 . Devices such as smartphones, tablets, and smartwatches are generally collectively referred to as mobile devices. Further, although the various data storage elements are illustrated as part of the machine 1000, the storage may also or alternatively include cloud-based storage accessible via a network, such as the Internet.

Memory 1003 may include volatile memory 1014 and non-volatile memory 1008. The machine 1000 may include—or have access to a computing environment that includes—a variety of computer-readable media, such as volatile memory 1014 and non-volatile memory 1008, removable storage 1010 and non-removable storage 1012. Computer storage includes random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM) & electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD ROM), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices capable of storing computer-readable instructions for execution to perform functions described herein.

The machine 1000 may include or have access to a computing environment that includes input 1006, output 1004, and a communication connection 1016. Output 1004 may include a display device, such as a touchscreen, that also may serve as an input device. The input 1006 may include one or more of a touchscreen, touchpad, mouse, keyboard, camera, one or more device-specific buttons, one or more sensors integrated within or coupled via wired or wireless data connections to the machine 1000, and other input devices. The computer may operate in a networked environment using a communication connection to connect to one or more remote computers, such as database servers, including cloud based servers and storage. The remote computer may include a personal computer (PC), server, router, network PC, a peer device or other common network node, or the like. The communication connection may include a Local Area Network (LAN), a Wide Area Network (WAN), cellular, Institute of Electrical and Electronics Engineers (IEEE) 802.11 (Wi-Fi), Bluetooth, or other networks,

Computer-readable instructions stored on a computer-readable storage device are executable by the processing unit 1002 of the machine 1000. A hard drive, CD-ROM, and RAM are some examples of articles including a non-transitory computer-readable medium such as a storage device. For example, a computer program 1018 may be used to cause processing unit 1002 to perform one or more methods or algorithms described herein.

Additional notes and examples:

Example 1 includes a computer-implemented method for machine learning (ML) by flowing a dataset towards a target dataset, the method comprising receiving a request to operate on a first dataset including first feature, label pairs, identifying a second dataset from multiple datasets, the second dataset including second feature, label pairs, determining a distance between the first feature, label and the second feature, label pairs, and flowing the first dataset using a dataset objective that operates based on the determined distance to generate an optimized dataset.

In Example 2, Example 1 can further include, wherein each label is represented by a probability distribution of features mapped to the label in the distance determination.

In Example 3, at least one of Examples 1-2 can further include operating a first ML model trained on the second dataset with the altered first dataset as input to provide a result,

In Example 4, at least one of Examples 1-3 can further include training a second ML model using the altered first dataset and at least a portion of the second dataset.

In Example 5, at least one of Examples 1-4 can further include providing the altered first dataset.

In Example 6, at least one of Examples 3-5 can further include keeping the first ML model static during training.

In Example 7 at least one of Examples 1-6 can further include, wherein determining the distance includes determining a differentiable distance.

In Example 8, Example 7 can further include, wherein the distance includes an optimal transport distance (OTD).

In Example 9, Example 8 can further include, wherein determining the OTD includes determining a distance between respective labels of the first and second datasets based on features of datapoints of the first and second datasets associated with the respective labels.

In Example 10, at least one of Examples 1-9 can further include, wherein flowing the first dataset includes determining gradients of the dataset objective with respect to the first dataset and flowing the first dataset thrther includes updating the first dataset using the determined gradient.

In Example 11, at least one of Examples 1-10 can further include, wherein the dataset objective includes at least one of minimizing internal energy, minimizing potential energy, minimizing distance, or minimizing interaction energy.

In Example 12, Example 11 can further include, wherein the dataset objective includes minimizing distance between feature, label pairs.

In Example 13, Example 10 can further include, wherein updating the first dataset using the determined gradient includes using a feature-driven update, joint-driven fixed-label update, or a joint-driven variable-label update.

In Example 14, at least one of Examples 1-13 can further include, wherein the first dataset and the second dataset include image datasets or the first dataset and the second dataset include natural language processing (NLT) datasets.

Example 15 can include a system including a memory and processing circuitry configured to implement the method of at least one of Examples 1-14.

Example 16 can include a machine-readable medium including instructions that, when executed by a machine, cause the machine to perform the method of at least one of Examples 1-14.

Although a few embodiments have been described in detail above, other modifications are possible. For example, the logic flows depicted in the figures do not require the order shown, or sequential order, to achieve desirable results. Other steps may be provided, or steps may be eliminated, from the described flows, and other components may be added to, or removed from, the described systems. Other embodiments may be within the scope of the following claims. 

1. (canceled)
 2. A computer-implemented method comprising: receiving a request for a classification of first data, the first data part of a first dataset, the first data including first label information and first feature data; identifying or receiving second data of a second dataset, the second data including second label information and second feature data, the second label information different from the first label information or the second feature data different from the first feature data; flowing the first data to a domain of the second dataset by: substituting a first probability distribution of the first feature data for the first label information resulting in altered first label information; substituting a second probability distribution of the second feature data for the second label information resulting in altered second label information; determining a distance between the altered first label information and the altered second label information resulting in a determined distance; and altering the first feature data using a dataset objective that operates based on the determined distance resulting in altered first data; operating a first machine learning (ML) model, trained based on the second dataset, based on the altered first data to generate a second classification; and providing, based on the second classification, the classification.
 3. The computer-implemented method of claim 2, wherein providing, based on the second classification, the classification includes altering the second classification to be in a domain of the first dataset.
 4. The computer-implemented method of claim 3, wherein altering the second classification to be in the domain of the first dataset includes flowing the second classification by: altering the second classification based on the determined distance resulting in an altered second classification; and returning a label of the first dataset data to which the altered second classification maps as the classification.
 5. The computer-implemented method of claim 2, further comprising training a second ML model using the altered first data and the second data.
 6. The computer-implemented method of claim 2, further comprising providing the altered first data.
 7. The computer-implemented method of claim 5, further comprising keeping the first ML model static during training.
 8. The computer-implemented method of claim 2, wherein determining the distance includes determining a differentiable distance.
 9. The computer-implemented method of claim 8, wherein the distance includes an optimal transport distance (OTD).
 10. The computer-implemented method of claim 9, wherein determining the OTD includes determining a distance between respective labels of the first and second datasets based on features of datapoints of the first and second datasets associated with the respective labels.
 11. The computer-implemented method of claim 10, wherein flowing the first dataset includes determining gradients of the dataset objective with respect to the second dataset and flowing the first data further includes updating the first data using the determined gradient.
 12. The computer-implemented method of claim 11, wherein the dataset objective includes at least one of minimizing internal energy, minimizing potential energy, minimizing distance, or minimizing interaction energy.
 13. The computer-implemented method of claim 12, wherein the dataset objective includes minimizing a distance between the first and the second data.
 14. The computer-implemented method of claim 12, wherein updating the first dataset using the determined gradient includes using a feature-driven update, joint-driven fixed-label update, or a joint-driven variable-label update.
 15. The computer-implemented method of claim 2, wherein the first dataset and the second dataset include image datasets or the first dataset and the second dataset include natural language processing (NLP) datasets.
 16. A non-transitory machine-readable medium including instructions that, when executed by a machine, cause the machine to perform operations comprising: receiving a request for a classification of first data, the first data part of a first dataset, the first data including first label information and first feature data; identifying or receiving second data of a second dataset, the second data including second label information and second feature data, the second label information different from the first label information or the second feature data different from the first feature data; flowing the first data to a domain of the second dataset by: substituting a first probability distribution of the first feature data for the first label information resulting in altered first label information; substituting a second probability distribution of the second feature data for the second label information resulting in altered second label information; determining a distance between the altered first label information and the altered second label information resulting in a determined distance; and altering the first feature data using a dataset objective that operates based on the determined distance resulting in altered first data; operating a first machine learning (ML) model, trained based on the second dataset, based on the altered first data to generate a second classification; and providing, based on the second classification, the classification.
 17. The machine-readable medium of claim 16, wherein providing, based on the second classification, the classification includes altering the second classification to be in a domain of the first dataset.
 18. The machine-readable medium of claim 17, wherein altering the second classification to be in the domain of the first dataset includes flowing the second classification by: altering the second classification based on the determined distance resulting in an altered second classification; and returning a label of the first dataset data to which the altered second classification maps as the classification.
 19. A system comprising: a memory including instructions stored thereon; processing circuitry coupled to the memory, the instructions, when executed by the processing circuitry configure the processing circuitry to: receive a request for a classification of first data, the first data part of a first dataset, the first data including first label information and first feature data; identify or receiving second data of a second dataset, the second data including second label information and second feature data, the second label information different from the first label information or the second feature data different from the first feature data; flow the first data to a domain of the second dataset by: substitution of a first probability distribution of the first feature data for the first label information resulting in altered first label information; substitution of a second probability distribution of the second feature data for the second label information resulting in altered second label information; determination of a distance between the altered first label information and the altered second label information resulting in a determined distance; and alteration the first feature data using a dataset objective that operates based on the determined distance resulting in altered first data; operation of a first machine learning (ML) model, trained based on the second dataset, based on the altered first data to generate a second classification; and provide, based on the second classification, the classification.
 20. The system of claim 19, wherein the dataset objective includes minimizing a distance between the first and the second data.
 21. The system of claim 19, wherein the first dataset and the second dataset include image datasets or the first dataset and the second dataset include natural language processing (NLP) datasets. 